﻿using System;
using System.ComponentModel;
using Liphofra.Core;

namespace Liphofra.Mvvm.ViewModels
{
    /// <summary>
    /// Describes basic view model functionality like change notifications, disposal and service location.
    /// </summary>
    public interface IViewModel : INotifyPropertyChanged, IDisposable
    {
        /// <summary>
        /// Gets or sets the service locator to use for dependency resolution.
        /// </summary>
        IServiceLocator ServiceLocator
        {
            get;
            set;
        }
    }
}